﻿public class Er010 {

	public static void main(String[] args) {
		int num = 8461;
		int geWei = num % 10;
		int shiWei = num / 10 % 10;
		int baiWei = num / 100 % 10;
		int qianWei = num / 1000;
		System.out.println("数字："+num);
		System.out.println("千位数是："+qianWei);
		System.out.println("百位数是："+baiWei);
		System.out.println("十位数是："+shiWei);
		System.out.println("个位数是："+geWei);
	}
}
